# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-pyforgejo
pkgver=1.0.2
pkgrel=1
pkgdesc="A client library for accessing the Forgejo API"
url="https://codeberg.org/harabat/pyforgejo"
arch="noarch"
license="MIT"
depends="
	py3-httpx
	py3-attrs
	py3-dateutil
	"
makedepends="py3-gpep517 py3-poetry-core"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/p/pyforgejo/pyforgejo-$pkgver.tar.gz"
builddir="$srcdir/pyforgejo-$pkgver"
options="!check" # no tests

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
5d8a6ce40bdb65a24e086b87a984e88fff8365d6971dafc0c9f7f6a23b4a515d13db27a6af5a29e964c5c1bb2116e344b22a207f31f0c20fdf065f37e47a809b  py3-pyforgejo-1.0.2.tar.gz
"
